export default {
  id: "heat",
  name: "热力图",
  show: true,
  html: "<div>test</div>",
  radius: 40,
  data: [
    [30.67, 104.06, 62],
    [30.88, 104.32, 63],
    [30.57, 104.94, 64],
    [30.2, 103.29, 65],
    [30.8, 103.86, 66],
    [30.82, 104.13, 67],
    [26.9, 102.15, 68],
    [26.9, 101.56, 69],
    [30.97, 103.81, 70],
    [31.04, 103.61, 71],
    [30.99, 103.94, 72],
    [31.13, 104.16, 73],
    [30.99, 104.25, 74],
    [30.42, 103.78, 75],
    [30.42, 103.47, 76],
    [30.58, 103.53, 77],
    [30.63, 103.69, 78],
    [31.48, 104.73, 79],
    [31.8, 104.7, 80],
    [32.59, 105.21, 81],
    [32.42, 104.52, 82],
    [32.44, 105.86, 83],
    [32.25, 106.33, 84],
    [32.03, 105.45, 85],
    [31.64, 105.16, 86],
    [31.1, 105.06, 87],
    [31.23, 105.35, 88],
    [30.9, 105.31, 89],
    [30.52, 105.58, 90],
    [30.78, 105.74, 91],
    [31.06, 104.68, 92],
    [31.13, 104.37, 93],
    [31.32, 104.19, 94],
    [31.64, 104.41, 95],
    [31.89, 104.44, 96],
    [29.59, 105.04, 97],
    [30.3, 105.02, 98],
    [30.12, 105.3, 99],
    [29.57, 104.7, 100],
    [29.81, 104.85, 101],
    [30.19, 104.6, 102],
    [30.38, 104.53, 103],
    [29.64, 105.25, 104],
    [29.77, 104.56, 105],
    [29.24, 104.97, 106],
    [28.87, 104.96, 107],
    [28.71, 105.06, 108],
    [28.77, 105.38, 109],
    [28.96, 105.46, 110],
    [28.79, 105.78, 111],
    [28.91, 105.39, 112],
    [28.03, 105.79, 113],
    [28.19, 105.44, 114],
    [28.6, 104.91, 115],
    [28.36, 105.06, 116],
    [28.38, 104.81, 117],
    [28.4, 104.52, 118],
    [28.16, 104.53, 119],
    [28.68, 104.15, 120],
    [29.59, 103.73, 121],
    [29.75, 103.59, 122],
    [29.95, 103.38, 123],
    [30.04, 103.53, 124],
    [29.86, 103.81, 125],
    [30.05, 103.81, 126],
    [30.22, 103.83, 127],
    [29.67, 104.06, 128],
    [30, 104.09, 129],
    [29.21, 103.93, 130],
    [28.96, 103.98, 131],
    [29.62, 103.5, 132],
    [28.87, 103.53, 133],
    [29.23, 103.25, 134],
    [29.24, 103.13, 135],
    [29.7, 107.36, 136],
    [30.36, 107.34, 137],
    [29.89, 107.7, 138],
    [29.98, 108.13, 139],
    [28.47, 108.97, 140],
    [28.85, 108.75, 141],
    [29.53, 108.81, 142],
    [29.29, 108.19, 143],
    [29.29, 108.72, 144],
    [29.15, 107.13, 145],
    [30.83, 108.35, 146],
    [31.23, 108.39, 147],
    [31.98, 108.67, 148],
    [31.42, 109.6, 149],
    [31.1, 109.86, 150],
    [31.06, 109.52, 151],
    [30.99, 108.89, 152],
    [30.33, 108.03, 153],
    [30.66, 107.78, 154],
    [30.8, 106.06, 155],
    [31.75, 105.96, 156],
    [31.75, 105.97, 157],
    [31.52, 106.38, 158],
    [31.34, 106.03, 159],
    [31.01, 105.84, 160],
    [31.07, 106.57, 161],
    [31.04, 106.44, 162],
    [30.48, 106.61, 163],
    [30.55, 106.43, 164],
    [30.38, 106.3, 165],
    [30.41, 106.74, 166],
    [31.23, 107.49, 167],
    [32.07, 108.06, 168],
    [31.39, 107.71, 169],
    [31.1, 107.87, 170],
    [30.36, 106.91, 171],
    [30.75, 107.21, 172],
    [30.85, 106.94, 173],
    [32.36, 106.83, 174],
    [31.86, 106.73, 175],
    [31.59, 107.11, 176],
    [31.95, 108.24, 177],
    [32, 108.18, 178],
    [29.97, 102.97, 179],
    [30.17, 102.91, 180],
    [30.09, 103.06, 181],
    [29.79, 102.81, 182],
    [29.4, 102.66, 183],
    [29.21, 102.38, 184],
    [30.09, 102.78, 185],
    [30.36, 102.84, 186],
    [31.92, 102.22, 187],
    [31.79, 102.55, 188],
    [31.93, 101.72, 189],
    [33.62, 102.94, 190],
    [32.06, 102.95, 191],
    [32.64, 103.61, 192],
    [33.23, 104.19, 193],
    [31.46, 103.61, 194],
    [31.42, 103.16, 195],
    [30.97, 102.34, 196],
    [31.48, 102.03, 197],
    [32.3, 100.97, 198],
    [31.67, 103.89, 199],
    [30.04, 101.95, 200],
    [31.38, 100.65, 201],
    [31.64, 99.96, 202],
    [30.96, 100.28, 203],
    [32.23, 98.83, 204],
    [31.81, 98.57, 205],
    [33.01, 98.06, 206],
    [32.3, 100.35, 207],
    [29.92, 102.25, 208],
    [30.85, 101.87, 209],
    [29.01, 101.53, 210],
    [30.03, 101, 211],
    [30.99, 101.14, 212],
    [30.03, 100.28, 213],
    [28.93, 99.78, 214],
    [29.04, 100.31, 215],
    [30, 99, 216],
    [28.71, 99.25, 217],
    [27.92, 102.29, 218],
    [28.03, 102.83, 219],
    [28.96, 102.74, 220],
    [28.21, 103.62, 221],
    [27.07, 102.76, 222],
    [26.74, 102.55, 223],
    [26.67, 102.21, 224],
    [27.4, 102.15, 225],
    [28.33, 103.14, 226],
    [27.73, 103.22, 227],
    [27.7, 102.8, 228],
    [27.38, 102.52, 229],
    [28.33, 102.42, 230],
    [28.66, 102.49, 231],
    [27.42, 101.51, 232],
    [28.58, 102.15, 233],
    [27.9, 101.25, 234]
  ]
};

// 后台返回的数据格式 要格式化成上面的格式
// [{"regioncode":"","regionname":"","regionlevel":"","smx":"","smy":"","value":""}....]

// 计算radius
// var getRadius = function(level) {
//   var result = 0;
//   //根据JSON配置，设置区划聚合对象热点最大半径
//   switch (level) {
//     case 2:
//       result = 40;
//       break;
//     case 3:
//       result = 40;
//       break;
//     case 4:
//       result = 45;
//       break;
//     case 5:
//       result = 40;
//       break;
//     case 6:
//       result = 36;
//       break;
//     case 8:
//       result = 45;
//       break;
//     default:
//       break;
//   }
//   return result;
// };

// 计算权重
/** 获取当前值num所在最大值maxNum的分段*/
// var getR = function(num, maxNum) {
//   if (num == 0) return "1";
//   for (var i = 1, size = 10; i <= size; i++) {
//     if (num > ((i - 1) * maxNum) / size && num <= (i * maxNum) / size) {
//       return 12 + i;
//     }
//   }
// };
